package com.ynny.example04;

public class Student  extends Person{

    public double English;//英语
    public double Math;//数学
    public double Ch;//语文

    public double getEnglish() {
        return English;
    }

    public void setEnglish(double english) {
        English = english;
    }

    public double getMath() {
        return Math;
    }

    public void setMath(double math) {
        Math = math;
    }

    public double getCh() {
        return Ch;
    }

    public void setCh(double ch) {
        Ch = ch;
    }

    @Override
    public String toString() {
        return "Student{" +
                ", 英语成绩=" + English +
                ", 数学成绩=" + Math +
                ", 语文成绩=" + Ch +
                '}';
    }

}
